package com.aididi.repository;

import com.aididi.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @ClassName UserRepository
 * @Description todo
 * @Author xuzexiang
 * @Data 2019/8/21 13:11
 */
public interface UserRepository extends JpaRepository<User,Long> {
    
    /**
     * @Description 根据用户名查询对象
     * @return com.aididi.entity.User
     * @param [username]
     * @Author xuzexiang
     * @Date 2019/8/21 13:20
     **/
    User findByUsername(String username);
}
